<%@page import="com.crm.entity.Parts,com.crm.entity.Sources,java.util.*" %>
<%@page import="com.crm.Business.CompareSrcVO" %>
<%List<CompareSrcVO> listcompare =(List<CompareSrcVO>)request.getAttribute("lscompare");%>
<table id="compareSourcesTable" width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#C5E4EB">
          <tr>
            <td width="20" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"  style="background-repeat:repeat-x">&nbsp;</td>
            <td width="33" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x" bgcolor="#FFFFFF"><span style="background-repeat:repeat-x">S.No</span></td>
            <td width="40" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x";bgcolor="#FFFFFF"> Part No </td>
            <td width="40" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x";bgcolor="#FFFFFF"> Description</td>
             <td width="40" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x" bgcolor="#FFFFFF">OffPartNo </td>
            <td width="42" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"  style="background-repeat:repeat-x" bgcolor="#FFFFFF">Required Qty </td>
            <td width="67" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x" bgcolor="#FFFFFF">Source</td>
            <td width="74" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x" bgcolor="#FFFFFF">Supplier</td>
            <td width="59" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x" bgcolor="#FFFFFF">Unit Price </td>
            <td width="59" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x" bgcolor="#FFFFFF">Currency</td>
            <td width="80" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-x" bgcolor="#FFFFFF">Qty availble</td>
            <td width="76" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:rrepeat-x" bgcolor="#FFFFFF">M.O.Q</td>
             <td width="76" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">S.P.Q</td>
            <td width="81" align="left" valign="middle" background="<%=application.getContextPath() %>/images/table-box.jpg"   style="background-repeat:repeat-xbgcolor="#FFFFFF">Conditions</td>
          </tr>
             <% if(listcompare!=null){
        	   for(int i=0;i<listcompare.size();i++){  %>
          <tr>
         
            <td bgcolor="#FFFFFF">
            <input name="autocheck<%=i %>" id="checkid<%=i %>" type="checkbox"   value="<%=i %>"class="content"  />
            <input type="hidden" name="columnCount" value="<%=listcompare.size()%>" id="columnCount"/> 
            </td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="sno<%=i %>" id="sno<%=i %>" type="text" value="<%=listcompare.get(i).getSno() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input  class="part" name="partno<%=i %>" id="partno<%=i %>" type="text" value="<%=listcompare.get(i).getPartNum() %>"  size="5"/><input  name="partid<%=i %>" id="partid<%=i %>" type="hidden" value="<%=listcompare.get(i).getPartid() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input  name="desc<%=i %>" id="desc<%=i %>" type="text" value="<%=listcompare.get(i).getDesc() %>"  size="5"/>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="offpartno<%=i %>" id="offpartno<%=i %>" type="text" value="<%=listcompare.get(i).getOffPartNo() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="rqty<%=i %>" id="rqty<%=i %>" type="text" value="<%=listcompare.get(i).getRequiredQty() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="source<%=i %>" id="source<%=i %>" type="text" value="<%=listcompare.get(i).getSourceName() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="supplier<%=i %>" id="supplier<%=i %>" type="text" value="<%=listcompare.get(i).getSupplierName() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="uprice<%=i %>" id="uprice<%=i %>"  type="text" value="<%=listcompare.get(i).getUprice() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="currency<%=i %>" id="currency<%=i %>"  type="text" value="<%=listcompare.get(i).getSourceCurrency() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="qtyavail<%=i %>" id="qtyavail<%=i %>" type="text" value="<%=listcompare.get(i).getAvailbleQty() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="moq<%=i %>"  id="moq<%=i %>" type="text" value="<%=listcompare.get(i).getMoq() %>"  size="5"/></td>
             <td align="left" valign="top" bgcolor="#FFFFFF"><input name="spq<%=i %>"  id="spq<%=i %>" type="text" value="<%=listcompare.get(i).getStdpackqty() %>"  size="5"/></td>
            <td align="left" valign="top" bgcolor="#FFFFFF"><input name="conditions<%=i %>" id="conditions<%=i %>" type="text" value="<%=listcompare.get(i).getConditions() %>"  size="5"/></td>
          </tr>
         <%}
         }%>
        </table>  